package cn.edu.scau.cmi.wangmaoren.abstractFactory.factory;

import cn.edu.scau.cmi.wangmaoren.abstractFactory.domainAbstractClass.Meat;

public abstract class AbstractFactory
{
	public static AbstractFactory getFactory(String brand)
	{
		switch (brand)
		{
		case "傲农生物":
			return new AonongFactory();
		case "天邦股份":
			return new TianbangFactory();
		case "温氏集团":
			return new WensFactory();
		}
		return null;

	}

	public abstract Meat createBeef();

	public abstract Meat createChicken();

	public abstract Meat createPork();
}